package com.lyncs.ods.modules.goods.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * spu信息总表
 * </p>
 *
 * @author alex
 * @since 2022-04-24
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("spu_info")
@ApiModel(value = "SpuInfo对象", description = "spu信息总表")
public class SpuInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("spu id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("spu名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("spu类别")
    @TableField("category")
    private Long category;

    @ApiModelProperty("名称多语言json")
    @TableField("language_json")
    private String languageJson;

    @ApiModelProperty("状态：1.启用；2.禁用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
